package com.audi.box.service;

import java.util.ArrayList;

import com.audi.box.adapter.SQLiteAsusHelperSmartTrigger;
import com.audi.dto.SmartTriggerTriggerItem;

public class SmartTriggerTriggerServiceImp implements
        SmartTriggerTriggerService {
    
    private SQLiteAsusHelperSmartTrigger mSQLHelper;
    
    public SmartTriggerTriggerServiceImp(SQLiteAsusHelperSmartTrigger mSQLHelper)
            throws Exception {
        this.mSQLHelper = mSQLHelper;
    }
    
    public void setSQLiteHelper(SQLiteAsusHelperSmartTrigger mSQLHelper) {
        this.mSQLHelper = mSQLHelper;
    }
    
    @Override
    public int addSmartTriggerTrigger(SmartTriggerTriggerItem trigger) {
        return mSQLHelper.addTriggerTrigger(trigger);
    }
    
    @Override
    public int updateSmartTriggerTrigger(SmartTriggerTriggerItem trigger) {
        return mSQLHelper.updateSmartTriggerTrigger(trigger);
    }
    
    @Override
    public boolean isExist(SmartTriggerTriggerItem trigger) {
        // TODO Auto-generated method stub
        return false;
    }
    
    @Override
    public ArrayList<SmartTriggerTriggerItem> getListSmartTriggerTrigger() {
        // TODO Auto-generated method stub
        return null;
    }
    
    @Override
    public int getDeviceValueFromTrigger(SmartTriggerTriggerItem trigger) {
        return mSQLHelper.getDeviceValueFromSTTrigger(trigger);
    }
    
    @Override
    public int deleteSmartTriggerTrigger(SmartTriggerTriggerItem trigger) {
        return mSQLHelper.deleleSmartTriggerTrigger(trigger);
    }
    
    @Override
    public SmartTriggerTriggerItem getSmartTrigger(int triggerId) {
        // TODO Auto-generated method stub
        return null;
    }
    
}
